<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title><g:message code="ljoj.onlinejudge.title.label" /></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <r:require modules="bootstrap, OJMain" />
    <g:layoutHead/>
    <r:layoutResources />
</head>
<body>

<div class="luojiaoj container">
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <div class="span1"></div>
                <a class="brand" href="#"><strong><g:message code="ljoj.onlinejudge.title.label" /></strong></a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="">
                            <a href="${createLink(controller: 'dashboard')}"><g:message code="ljoj.onlinejudge.home.label" /></a>
                        </li>
                        <li class="">
                            <a href="${createLink(controller: 'news', action: 'list')}"><g:message code="ljoj.onlinejudge.news.label" /></a>
                        </li>
                        <li class="dropdown">
                            <a href="" class="dropdown-toggle" data-toggle="dropdown"><g:message code="ljoj.onlinejudge.contest.label" /><b class="caret"></b></a>
                            <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                                <li><a tabindex="-1" href="#"><g:message code="ljoj.onlinejudge.contest.in.label" /></a></li>
                                <li><a tabindex="-1" href="#"><g:message code="ljoj.onlinejudge.contest.out.label" /></a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="" class="dropdown-toggle" data-toggle="dropdown"><g:message code="ljoj.onlinejudge.problem.label" /><b class="caret"></b></a>
                            <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                                <li><a tabindex="-1" href="<g:createLink controller="subject" action="list" />"><g:message code="ljoj.onlinejudge.problem.list.label" /></a></li>
                                <li><a tabindex="-1" href="#"><g:message code="ljoj.onlinejudge.problem.status.label" /></a></li>
                                <li class="divider"></li>
                                <li><a tabindex="-1" href="#"><g:message code="ljoj.onlinejudge.problem.rank.label" /></a></li>
                            </ul>
                        </li>
                        <li class="">
                            <a href=""><g:message code="ljoj.onlinejudge.topic.label" /></a>
                        </li>
                        <li class="">
                            <a href=""><g:message code="ljoj.onlinejudge.forum.label" /></a>
                        </li>
                    </ul>
                    <ul class="nav pull-right">
                        <sec:ifLoggedIn>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><sec:loggedInUserInfo field="username" /><b class="caret"></b></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                                    <li><a tabindex="-1" href="${createLink(controller: 'profile', action: 'profile')}"><i class="icon-user"></i>&nbsp<g:message code="ljoj.onlinejudge.user.profile.label" /></a></li>
                                    <li><a tabindex="-1" href="${createLink(controller: 'profile', action: 'profile')}"><i class="icon-wrench"></i>&nbsp<g:message code="ljoj.onlinejudge.user.modify.label" /></a></li>
                                    <li class="divider"></li>
                                    <li><a tabindex="-1" href="#"><i class="icon-tags"></i>&nbsp<g:message code="ljoj.onlinejudge.user.problemSet.label" /></a></li>
                                </ul>
                            </li>

                            <li class="">
                                <g:link controller='logout'><g:message code="ljoj.onlinejudge.logout.label" /></g:link>
                            </li>
                        </sec:ifLoggedIn>
                        <sec:ifNotLoggedIn>
                            <li class="">
                                <g:link controller='login' action='auth'><g:message code="ljoj.onlinejudge.login.label" /></g:link>
                            </li>
                            <li class="">
                                <g:link controller='user' action='create'><g:message code="ljoj.onlinejudge.register.label" /></g:link>
                            </li>
                        </sec:ifNotLoggedIn>
                        <li class="">
                            <a href=""><g:message code="ljoj.onlinejudge.about.label" /></a>
                        </li>
                        <li class="span1">
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <g:layoutBody/>
</div>
<r:layoutResources />
</body>
</html>

